package com.tutu.book.service;


import com.tutu.commons.entity.Book;
import org.apache.ibatis.annotations.Param;

/**
 * @Program: SpringCloud
 * @Description:
 * @Author: JK.TuTu
 * @ @Version: 1.0
 * @Create: 2022-12-01 13:05
 **/
public interface BookService {
    Book getBookById(int bid);

    /**
     * 根据bid获取图书数量
     */
    int getBookNum(@Param("bid") int bid);

    /**
     * 实现图书借阅功能
     */
    int bookBorrow(int bid, int num);
}
